﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002F5 RID: 757
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ClientMailAttachmentItem : IMessage<ClientMailAttachmentItem>, IMessage, IEquatable<ClientMailAttachmentItem>, IDeepCloneable<ClientMailAttachmentItem>, IBufferMessage
	{
		// Token: 0x170009CD RID: 2509
		// (get) Token: 0x060021DE RID: 8670 RVA: 0x0005FCE4 File Offset: 0x0005DEE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ClientMailAttachmentItem> Parser
		{
			get
			{
				return ClientMailAttachmentItem._parser;
			}
		}

		// Token: 0x170009CE RID: 2510
		// (get) Token: 0x060021DF RID: 8671 RVA: 0x0005FCEB File Offset: 0x0005DEEB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ClientMailAttachmentItemReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170009CF RID: 2511
		// (get) Token: 0x060021E0 RID: 8672 RVA: 0x0005FCFD File Offset: 0x0005DEFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ClientMailAttachmentItem.Descriptor;
			}
		}

		// Token: 0x060021E1 RID: 8673 RVA: 0x0005FD04 File Offset: 0x0005DF04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientMailAttachmentItem()
		{
		}

		// Token: 0x060021E2 RID: 8674 RVA: 0x0005FD0C File Offset: 0x0005DF0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientMailAttachmentItem(ClientMailAttachmentItem other) : this()
		{
			this.mailId_ = other.mailId_;
			this.itemId_ = other.itemId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060021E3 RID: 8675 RVA: 0x0005FD3D File Offset: 0x0005DF3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientMailAttachmentItem Clone()
		{
			return new ClientMailAttachmentItem(this);
		}

		// Token: 0x170009D0 RID: 2512
		// (get) Token: 0x060021E4 RID: 8676 RVA: 0x0005FD45 File Offset: 0x0005DF45
		// (set) Token: 0x060021E5 RID: 8677 RVA: 0x0005FD4D File Offset: 0x0005DF4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MailId
		{
			get
			{
				return this.mailId_;
			}
			set
			{
				this.mailId_ = value;
			}
		}

		// Token: 0x170009D1 RID: 2513
		// (get) Token: 0x060021E6 RID: 8678 RVA: 0x0005FD56 File Offset: 0x0005DF56
		// (set) Token: 0x060021E7 RID: 8679 RVA: 0x0005FD5E File Offset: 0x0005DF5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x060021E8 RID: 8680 RVA: 0x0005FD67 File Offset: 0x0005DF67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ClientMailAttachmentItem);
		}

		// Token: 0x060021E9 RID: 8681 RVA: 0x0005FD75 File Offset: 0x0005DF75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ClientMailAttachmentItem other)
		{
			return other != null && (other == this || (this.MailId == other.MailId && this.ItemId == other.ItemId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060021EA RID: 8682 RVA: 0x0005FDB4 File Offset: 0x0005DFB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MailId != 0U)
			{
				num ^= this.MailId.GetHashCode();
			}
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060021EB RID: 8683 RVA: 0x0005FE0C File Offset: 0x0005E00C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060021EC RID: 8684 RVA: 0x0005FE14 File Offset: 0x0005E014
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060021ED RID: 8685 RVA: 0x0005FE20 File Offset: 0x0005E020
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MailId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.MailId);
			}
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060021EE RID: 8686 RVA: 0x0005FE7C File Offset: 0x0005E07C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MailId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MailId);
			}
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060021EF RID: 8687 RVA: 0x0005FED4 File Offset: 0x0005E0D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ClientMailAttachmentItem other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MailId != 0U)
			{
				this.MailId = other.MailId;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060021F0 RID: 8688 RVA: 0x0005FF24 File Offset: 0x0005E124
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060021F1 RID: 8689 RVA: 0x0005FF30 File Offset: 0x0005E130
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ItemId = input.ReadUInt32();
					}
				}
				else
				{
					this.MailId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000DD3 RID: 3539
		private static readonly MessageParser<ClientMailAttachmentItem> _parser = new MessageParser<ClientMailAttachmentItem>(() => new ClientMailAttachmentItem());

		// Token: 0x04000DD4 RID: 3540
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000DD5 RID: 3541
		public const int MailIdFieldNumber = 6;

		// Token: 0x04000DD6 RID: 3542
		private uint mailId_;

		// Token: 0x04000DD7 RID: 3543
		public const int ItemIdFieldNumber = 8;

		// Token: 0x04000DD8 RID: 3544
		private uint itemId_;
	}
}
